import java.util.HashSet;
import java.util.Iterator;

public class HashSetText {
    public static void main(String[] args) {
        HashSet<Student>studentHashSet=new HashSet<Student>();
        HashSet<String> stringHashSet = new HashSet<String>();
        stringHashSet.add("张三");
        stringHashSet.add("李si");
        stringHashSet.add("Lily");
     /*
       for (String s : stringHashSet) {
            System.out.println(s);
        }*/
        Iterator iterator=stringHashSet.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }
    }
}
